package ooday02;

public class Student {
    public String name; //成员变量(整个类中)
    public int age;
    public String address;
    //局部变量(当前方法中)
    public Student(String name, int age, String address){
        this.name = name;
        this.age = age;
        this.address = address;
    }


   public void study(){
        System.out.println(this.name+"在学习...");
    }
   public void sayHi(){
        System.out.println("大家好，我叫"+name+"，今年"+age+"岁了，家住"+address);
    }


}


